-
Notifications
You must be signed in to change notification settings - Fork 231
Refactor env_preferences to host_info #7113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7b7864e to
84e83fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API overall looks quite straightforward
|
I'll need help figuring out how to avoid enabling |
utils/host_info/src/lib.rs
Outdated
| //! | Date format | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | | ||
| //! | Number format | ⚠️ | ⚠️ | ⚠️ | ⚠️ | ⚠️ | | ||
| //! | ||
| //! <sup>(1)</sup> In case of Linux different DE's such as Gnoem and KDE are supported together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's a "DE"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Desktop Environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please spell out. also Gnome has a typo
|
🎉 All dependencies have been resolved ! |
|
Thanks all. Applied feedback and rebased on top of main. I'm still not sure how to handle working around |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I also don't know how to fix the --all-features test. Does the gio provide any guidance for use in libraries?
Four solutions:
Discussion:
Solution:
|
c68477c to
8c0c88c
Compare
|
@Manishearth the PR is ready. Can you guide me through where to inject it into CI? We can also do this in a separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use merge commits instead of rebase if there are active reviews. GitHub does not support seeing a diff since the last review if the branch was force-pushed.
|
I took a stab at writing CI. I added it to the @zbraniecki it would be nice if we could actually |
|
I thought the CI was going to be augmenting the job that tests harfbuzz to also install glib and test host info |
|
How about clippy? It seems like this is also something where we actually care a lot about building on the matrix of platforms? |
We could; that task currently tests tutorials so it's a bit awkward to stick this in there. But maybe test-cargo should call test-tutorials and test-hostinfo? That's an easy change. We never really agreed on what CI we wanted; Zibi just asked for help on how to make CI actually work.
Probably! I just did the first pass since Zibi wanted help with the makefiles. I don't have a full understanding of what is and isn't broken here, and I don't have the time to play with CI to figure it out. There's now a makefile task dedicated to this test that Zibi or someone else can expand and experiment with. |
|
I think what we should probably do is rename ci-job-cargo to ci-job-nonworkspace, have it call a test-tutorials and test-hostinfo test-hostinfo runs check and test. we also have ci-job-clippy call clippy-hostinfo. I think that makes sense? |
|
@Manishearth the only dep that is required to run tests is on Linux platform we need to install |
|
If we want to test it on all platforms we probably want a subtask of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should definitely merge this and iterate on this after.
Depends on #7112 .
Partially resolves #5869 implementing refactor plus documentation, and fixing #6574 .